<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%>
<aside class="Hui-aside">
	<input runat="server" id="divScrollValue" type="hidden" value="" />
	<c:set var="menuList" value="${sessionScope.userMenu }"></c:set>
	<div class="menu_dropdown bk_2">
		<c:forEach items="${menuList }" var="menu">
			<%--没有下级元素 --%>
			<c:choose>
				<c:when test="${fn:length(menu.secondMenu)==0}">
					<dl id="${menu.id }">
						<ul>
							<c:set var="url" value="${ctx}${menu.url}"></c:set>
							<li id="${menu.id }-1"><a href="${(empty menu.url) ? '#' : url}" firstMenu="${menu.id }" secondMenu="${menu.id }-1">${menu.cname }</a></li>
						</ul>
					</dl>
				</c:when>
				<c:otherwise>
					<dl id="${menu.id }">
						<dt>${menu.cname }<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
						<dd>
							<ul>
								<c:forEach items="${menu.secondMenu }" var="second">
									<c:set var="secondUrl" value="${ctx}${second.url}"></c:set>
									<li id="${second.id }"><a href="${(empty second.url) ? '#' : secondUrl}" firstMenu="${menu.id }" secondMenu="${second.id }">${second.cname }</a></li>
								</c:forEach>
							</ul>
						</dd>
					</dl>
				</c:otherwise>
			</c:choose>
		</c:forEach>
	</div>
</aside>
<div class="dislpayArrow">
	<a class="pngfix"onClick="displaynavbar(this)"></a>
</div>